//
//  ContentView.swift
//  4444444
//
//  Created by wangyong的MAC on 2021/9/7.
//

import SwiftUI

struct ContentView: View {
    @SecureStorage("mamba")
    var goal: Int = 150

    var body: some View {
        NavigationView {
            VStack {
                Section(header: Text("heartMinutesGoal")) {
                    Stepper(value: $goal, in: 150...900, step: 10) {
                        Text("\(goal) heartMinutesGoalValue")
                    }
                }
                NavigationLink(destination: subPageView(goal: $goal)){
                    Text("点击跳转")
                }
            }
  
        }

    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
